<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ include file="include/base.jsp"%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    
    <title>My JSP 'document.jsp' starting page</title>
    
	<link rel="stylesheet" type="text/css" href="css/bootstrap.min.css">

  </head>
  
  <body class="body">
    <%@include file="include/top.jsp" %>
    <div class="container" >
	  <div class="row">
		 <div class="span3">
		 	<%@include file="include/left.jsp" %>
	     </div>
	     <div class="span9">
			  	<ul class="breadcrumb" style="margin-bottom:0px;border-radius: 3px 3px 0 0;margin-top:15px">
					<li class="active">
						<a href="#"><i class="icon-folder-open"></i>资料</a>
					</li>
					<li class="pull-right"><i class="icon-plus"></i><a href="newdocument.jspx" class="link-black">分享新资料</a></li>
				</ul> 
				<div class="well" style="margin-bottom:20px;">
					<c:forEach items="${requestScope.page.list }" var="document" varStatus="vs">
						<blockquote>
						  <h4>资料标题　　　<a href="showdocument.jspx?id=${document.id }">${document.title }</a></h4>
						 
						  <small>${document.employee.username}发布于${document.createtime }</small>
						  <a href="editdocument.jspx?id=${document.id }" title="编辑"><i class="icon-pencil"></i></a>
						  <a href="deldocument.jspx?id=${document.id }" title="删除"><i class="icon-trash"></i></a>
						</blockquote>
					</c:forEach>
			 </div>	
			<c:if test="${page.totalPages > 1 }">
		                <div class="pagination pull-right">
		                  <ul>
		                    <li ><a href="document.jspx?p=1" >首页</a></li>
		                    <li><a href="document.jspx?p=${(page.pageNum)-1 }" >上一页</a></li>
		                    <li><a href="document.jspx?p=${(page.pageNum)+1}" >下一页</a></li>
		                    <li><a href="document.jspx?p=${(page.totalPages)}" >尾页</a></li>
		                  </ul>
		                </div>
		     </c:if>
		</div>			
		</div>
	 </div>
   <script type="text/javascript" src="js/jquery.min.js"></script>
   
  </body>
</html>
